/* nixonFTP
 * FTP client version 0.1
 * Copyright (C) 2010 NIXON Development Corporation.
 * All rights reserved.
 * http://members.shaw.ca/nixon.com
*/

package nixonftp;

import nixonftp.list.NXListAdapter;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Billy
 */
public class NXQueueItem implements Cloneable {

	public String activity;
	public String localFolder;
	public String remoteFolder;
	public final String fileName;
	public String fakePath;
	public String error;
	public Object list;
	public Object display;
	public long totalSize = -1;
	public long progress = -1;
	public Object[] values;
	public boolean block;
	public Object[] preload;

	public NXQueueItem(String activity, String localFolder, String remoteFolder, String fileName, Object list, long size) {
		this.activity = activity;
		this.localFolder = localFolder;
		this.remoteFolder = remoteFolder;
		this.fileName = fileName;
		this.list = list;
		this.totalSize = size;
	}

	public NXQueueItem(String activity, String localFolder, String remoteFolder, String fileName) {
		this(activity, localFolder, remoteFolder, fileName, null, 0);
	}

	public void setError(String message) {
		error = message;
	}

	public void setDisplay(Object obj) {
		display = obj;
	}

	public NXQueueItem clone() {
		NXQueueItem obj = null;
		try {
			obj = (NXQueueItem) super.clone();
		} catch (CloneNotSupportedException ex) {
			Logger.getLogger(NXQueueItem.class.getName()).log(Level.SEVERE, null, ex);
		}
		return obj;
	}
}
